
ACLOCAL_AMFLAGS = `-I m4` 

DIRS = \
	doc \
	po \
	src \
	tests
	
SUBDIRS= ${DIRS} @DOC@

DIST_SUBDIRS= ${DIRS} doc
	
libdxfdocdir = ${prefix}/doc

libdxfdoc_DATA = \
	ABOUT-NLS \
	AUTHORS \
	ChangeLog \
	CODE_OF_CONDUCT \
	CONTRIBUTING \
	COPYING \
	INSTALL \
	LICENSE \
	MANIFEST \
	NEWS \
	README
	
EXTRA_DIST = $(libdxfdoc_DATA)

INTLTOOL_FILES = intltool-extract.in intltool-merge.in  intltool-update.in

DISTCLEANFILES= configure.lineno intltool-extract intltool-merge intltool-update po/.intltool-merge-cache

MAINTAINERCLEANFILES= $(INTLTOOL_FILES)

DISTCHECK_CONFIGURE_FLAGS := ${DISTCHECK_CONFIGURE_FLAGS} --disable-update-mime-database --disable-update-desktop-database

# Copy all the spec files. Of cource, only one is actually used.
dist-hook:
	for specfile in *.spec; do \
		if test -f $$specfile; then \
			cp -p $$specfile $(distdir); \
		fi \
	done
	
## generate API documentation with doxygen
apidox:
	$(MAKE) apidox-am-@LIBDXF_HAS_DOXYGEN@

apidox-am-no:
apidox-am-yes:
	@echo "*** Creating API documentation main page"; \
	cd doc/doxygen; \
	doxygen libDXF.dox

.PHONY: apidox-am-yes apidox-am-no apidox

